package com.congwulin.wechat.RabbitMQ;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "topic.second")
public class Topic2Receiver {

    @RabbitHandler
    public void process(String msg){
        System.out.println("Receive2: " + msg);
    }
}
